<div class="table-margin">
	<div class="table-header">
		<table class="table table-bordered table-header">
			<thead>
				<tr>
					<td class="w5 text-center">
						<input type="checkbox" 
							   ng-model="master" 
							   ng-mousedown="getDataID()"	
							   ng-click="selectAll(master, tabVal)"
							   >
				    </td>
					<td class="w10 text-center">序号</td>
					<td class="w10 text-center">名称</td>
					<td class="w10 text-center">英文名称</td>
					<td class="w10 text-center">资源明细表</td>
					<td class="w10 text-center">是否可零售</td>
					<td class="w10 text-left">操作</td>
				</tr>
			</thead>
			<tbody>
		</table>	
	</div>	
	<div class="table-body">
		<table class="table table-bordered table-header">		
				<tr ng-repeat="val in tabVal |orderBy:b+a | filter:roles_search" ng-class="{'active':$index%2!=0}">
					<td class="w5 text-center"><input type="checkbox"
						ng-checked="master" ng-mousedown="getDataID()"
						ng-click="select(val,bool)" ng-model="bool"></td>
					<td class="w10 text-center">{{$index + 1}}</td>
					<td class="w10 text-center">{{ val.name }}</td>
					<td class="w10 text-center">{{ val.enName }}</td>
					<td class="w10 text-center">{{ val.resTable }}</td>
					<td class="w10 text-center">
						<strong class="text-success" ng-show="val.isRetail==1">可零售</strong> 
						<strong class="text-danger"  ng-show="val.isRetail==0">不可零售</strong>
					</td>
					<td class="w10 text-center icon-td">
	                    <span class="btn-i" 
	                    	  title="详情"  
	                    	  ng-click="details($index)" 
	                    	  data-toggle="modal" 
	                    	  data-target="#details"
	                    	  >
	                    	<img width="14px" src="../images/right-product/view.png">
	                    </span>
	                    <span class="btn-i" 
	                    	  title="修改" 
	                    	  ng-click="edit($index)"    
	                    	  data-toggle="modal" 
	                    	  data-target="#edit"
	                    	  >
	                    	<img width="14px" src="../images/right-product/edit.png">
	                    </span>
					</td>
				</tr>
				<tr>
					<td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
				</tr>
			</tbody>
		</table>
	</div>	
</div>